package cn.itcast.order.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * <p>获取本地配置文件测试</p>
 *
 * @author jian
 * @version V1.0.0
 * @date 2022-06-26 13:20
 */
@Configuration
// 自己添加的，指定配置文件，应用于读个配置文件混乱时需要指定读取哪个配置文件
@PropertySource(value = "classpath:application.yml", ignoreResourceNotFound = true)
@Data
public class OrderConfiguration {
    @Value("${my33.name}")
    private String myName;
    @Value("${my33.age}")
    private String myAge;
    @Value("${my33.school}")
    private String mySchool;
}
